package com.ybkj.o2o.zhuanche.entity;

import com.ybkj.o2o.zhuanche.common.json.DateTimeJsonSerializer;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.io.Serializable;
import java.util.Date;

public class CarType implements Serializable {
  private Long id;
  @JsonSerialize(using = DateTimeJsonSerializer.class)
  private Date created;// 创建时间
  @JsonSerialize(using = DateTimeJsonSerializer.class)
  private Date updated;// 修改时间

  private String typeName;// 类型名称

  private Long areaId;// 收费标准

  private Integer sequence;// 排序

  private String picture;// 图片

  private String photo;// APP显示图片

  private String appKey;

  private Long companyId;// 所属公司ID

  private String companyName;// 所属公司名字
  
  private String ifTaxi;//是否是出租车

  private String accessibleType;//返显值

  public String getAccessibleType() {
	return accessibleType;
}

public void setAccessibleType(String accessibleType) {
	this.accessibleType = accessibleType;
}

public String getIfTaxi() {
	return ifTaxi;
}

public void setIfTaxi(String ifTaxi) {
	this.ifTaxi = ifTaxi;
}

private static final long serialVersionUID = 1L;

  public Long getCompanyId() {
    return companyId;
  }

  public void setCompanyId(Long companyId) {
    this.companyId = companyId;
  }

  public String getCompanyName() {
    return companyName;
  }

  public void setCompanyName(String companyName) {
    this.companyName = companyName;
  }

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public String getTypeName() {
    return typeName;
  }

  public void setTypeName(String typeName) {
    this.typeName = typeName == null ? null : typeName.trim();
  }

  public Long getAreaId() {
    return areaId;
  }

  public void setAreaId(Long areaId) {
    this.areaId = areaId;
  }

  public Integer getSequence() {
    return sequence;
  }

  public void setSequence(Integer sequence) {
    this.sequence = sequence;
  }

  public String getPicture() {
    return picture;
  }

  public void setPicture(String picture) {
    this.picture = picture == null ? null : picture.trim();
  }

  public String getPhoto() {
    return photo;
  }

  public void setPhoto(String photo) {
    this.photo = photo == null ? null : photo.trim();
  }

  public String getAppKey() {
    return appKey;
  }

  public void setAppKey(String appKey) {
    this.appKey = appKey == null ? null : appKey.trim();
  }

  @Override
  public boolean equals(Object that) {
    if (this == that) {
      return true;
    }
    if (that == null) {
      return false;
    }
    if (getClass() != that.getClass()) {
      return false;
    }
    CarType other = (CarType) that;
    return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
        && (this.getCreated() == null ? other.getCreated() == null : this.getCreated().equals(
            other.getCreated()))
        && (this.getUpdated() == null ? other.getUpdated() == null : this.getUpdated().equals(
            other.getUpdated()))
        && (this.getTypeName() == null ? other.getTypeName() == null : this.getTypeName().equals(
            other.getTypeName()))
        && (this.getAreaId() == null ? other.getAreaId() == null : this.getAreaId().equals(
            other.getAreaId()))
        && (this.getSequence() == null ? other.getSequence() == null : this.getSequence().equals(
            other.getSequence()))
        && (this.getPicture() == null ? other.getPicture() == null : this.getPicture().equals(
            other.getPicture()))
        && (this.getIfTaxi() == null ? other.getIfTaxi() == null : this.getIfTaxi().equals(
            other.getIfTaxi()))
        && (this.getAppKey() == null ? other.getAppKey() == null : this.getAppKey().equals(
            other.getAppKey()));
  }

  @Override
  public int hashCode() {
    final int prime = 31;
    int result = 1;
    result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
    result = prime * result + ((getCreated() == null) ? 0 : getCreated().hashCode());
    result = prime * result + ((getUpdated() == null) ? 0 : getUpdated().hashCode());
    result = prime * result + ((getTypeName() == null) ? 0 : getTypeName().hashCode());
    result = prime * result + ((getAreaId() == null) ? 0 : getAreaId().hashCode());
    result = prime * result + ((getSequence() == null) ? 0 : getSequence().hashCode());
    result = prime * result + ((getPicture() == null) ? 0 : getPicture().hashCode());
    result = prime * result + ((getAppKey() == null) ? 0 : getAppKey().hashCode());
    return result;
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append(getClass().getSimpleName());
    sb.append('[');
    sb.append("Hash = ").append(hashCode());
    sb.append(", id=").append(id);
    sb.append(", created=").append(created);
    sb.append(", updated=").append(updated);
    sb.append(", typeName=").append(typeName);
    sb.append(", areaId=").append(areaId);
    sb.append(", sequence=").append(sequence);
    sb.append(", picture=").append(picture);
    sb.append(", appKey=").append(appKey);
    sb.append(", serialVersionUID=").append(serialVersionUID);
    sb.append(']');
    return sb.toString();
  }
}
